package com.wsd.common.utils;

import com.wsd.exception.RRException;

public class Assert {

    public static void isNull (Object obj){
        if (obj == null) {
            throw new NullPointerException();
        }
    }

    public static void isFalse(boolean status) {
        if (!status) {
            throw new RRException("操作失败");
        }
    }

}
